package com.ww.idiom.activity;

import net.youmi.android.AdManager;
import net.youmi.android.offers.OffersManager;
import android.content.Intent;
import android.os.Bundle;

import com.ww.core.activity.MySplashActivity;
import com.ww.idiom.R;
import com.ww.idiom.activity.menu.MenuActivity;
import com.ww.idiom.db.Constants;
import com.ww.idiom.uti.JMPManager;

/**
 * @since 
 * @version 2013-12-19
 * @author wangwei
 */
public class SplashActivity extends MySplashActivity {
	private final String FS_ID = "2158064";
	private static boolean openAdView = true;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);

		JMPManager manager = new JMPManager();
		manager.startService(this, 1);

		AdManager.getInstance(this).init("e5798a7ca5a72bcd", "be98da65174b9a79", false);
		// 如果使用积分广告，请务必调用积分广告的初始化接口:
		OffersManager.getInstance(this).onAppLaunch();
		
		gotoMain(FS_ID, Constants.DATABASE_PATH, Constants.DATABASE_NAME, R.raw.idiomdb, new Intent(
				getApplicationContext(), MenuActivity.class), openAdView);
	}

}
